<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld"  prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld"  prefix="logic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html:html lang="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>Dang ky </title>
<style>
.style1 {
	font-size: 22px;
	font-style: italic;
}
.style2 {font-size: 18px}
.textbox {
	height: 25px;
	border: 1px solid #CCCCCC;
	color: #000000;
}
-->
</style>
</head> 
<body marginwidth="100px" bgcolor="#FFFFDD" >
<table width="100%" border="0" align="center" cellspacing="0px"  background= "../picture/background.jpg">
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>
	<jsp:include page="header.jsp" />	</td>
  </tr>
  <tr>
    <td >
	<table width="100%" border="0" cellspacing="0">
      <tr>
        <td width="140" valign="top" style="border-right: 2px solid #cccccc " ><jsp:include page="left.jsp" /></td>
        <td valign="top">
            <logic:present name="customer" >
                 Ban phai dang xuat khoi account <span style="font-weight: bold"> <bean:write name="customer" property="userName" scope="session"/></span>
                  truoc khi tao 1ss account khac
            </logic:present>
            
            <logic:notPresent name="customer">
        <html:form action="/client/pages/submitCusRegister" >
<table width="354"  border="0" align="center" cellpadding="6" class="style2">
  <tr>
    <td height="40" colspan="2"><span class="style1">your information</span> : </td>
  </tr>

    <tr>
        <td colspan="2">
            <span style="color:red; font-style: italic"><html:errors/></span>
            <logic:present name="failRegister" scope="request">
                 <span style="color:#ff0000;font-style: italic; font-size: 20px">
                  <%= request.getAttribute("failRegister")%></span>
            </logic:present>
        </td></tr>
  <tr>
    <td width="104" valign="middle">User name</td>
    <td width="220" valign="middle"><input name="userName" type="text" class="textbox" id="userName" size="30" /></td>
  </tr>
  <tr>
    <td valign="middle">Password</td>
    <td valign="middle">
      <html:password property="passw" styleClass="textbox"  size="30" />    </td>
  </tr>
 <tr>
    <td valign="middle">RePassword</td>
    <td valign="middle">
      <input type="password" name="repassw" class="textbox"  size="30" />    </td>
  </tr>
  <tr>
    <td valign="middle">Email</td>
    <td valign="middle">
        <html:text property="email" styleClass="textbox"  size="30" />    </td>
  </tr>
  <tr>
    <td valign="middle">Phone</td>
    <td valign="middle">
        <html:text property="phone" styleClass="textbox"  size="30" />    </td>
  </tr>
  <tr>
    <td valign="middle">Address</td>
    <td valign="middle">
        <html:text property="address"styleClass="textbox" size="30" />    </td>
  </tr>
  <tr>
    <td valign="middle">Gender</td>
    <td align="center" valign="middle">
        <label> Male  <html:radio property="gender" title="Male" value="1" /></label>
        <label> Female <html:radio property="gender" title="Female" value="0" /></label>
    </td></tr>
  <tr>
    <td height="69" align="center" valign="middle">&nbsp;</td>
    <td height="69" align="center" valign="middle"><html:submit property="submit" value="Submit" />
&nbsp;
<html:reset property="reset" value=" Reset " /></td>
  </tr>
</table>
</html:form>
        </logic:notPresent ></td>
        <td width="130" valign="top" style="border-left: 2px solid #cccccc "><jsp:include page="right.jsp" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>footer</td>
  </tr>
</table>
</body>
</html:html>
